package com.zuul.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class TestCOntroller {


    @RequestMapping("test001/{name}")
    public String test002(@PathVariable("name") String name){
        if("1".equals(name)){
            throw new RuntimeException("======报错======");
        }
        return name;
    }

}
